package com.jingwei.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jingwei.bean.User;
import com.jingwei.dao.UserDAO;

@Service
@Transactional
public class UserService {

	@Autowired
	private UserDAO userDao;

	public List<User> list(int limit) {
		return userDao.find(limit);
	}

}
